import request from '@/libs/request';

export default {
	//编辑危险源
	editDanger: (params = {}, options = {}) => {
		return request.post('/risk/editSource', params, options)
	},
	//添加危险源
	addDanger: (params = {}, options = {}) => {
		return request.post('/risk/addSource', params, options)
	},
	//删除危险源
	delDanger: (params = {}, options = {}) => {
		return request.post('/risk/deleteSource', params, options)
	},
	//审核危险源
	auditDanger: (params = {}, options = {}) => {
		return request.post('/risk/auditSource', params, options)
	},
	//获取危险源列表
	getDangerList: (params = {}, options = {}) => {
		return request.get('/risk/sourceList', params, options)
	},
	//获取危险源清单
	getDangerInventory: (params = {}, options = {}) => {
		return request.get('/risk/sourceList', params, options)
	},
	//获取安全隐患详情
	getDangerDetail: (params = {}, options = {}) => {
		return request.get('/risk/sourceDetail', params, options)
	},
	//导入危险源excel
	importDangerExcel: (params = {}, options = {}) => {
		return request.post('/risk/importSource', params, options)
	},
	//导出危险源excel
	exportDangerExcel: (params = {}, options = {}) => {
		return request.post('/risk/exportSource', params, options)
	},
	//获取全部危险源列表
	exportAllDangerExcel: (params = {}, options = {}) => {
		return request.post('/risk/exportSourceAll', params, options)
	},
	//彻底删除危险源
	clearSource: (params = {}, options = {}) => {
		return request.post('/risk/clearSource', params, options)
	},
	//还原危险源
	restoreSource: (params = {}, options = {}) => {
		return request.post('/risk/restoreSource', params, options)
	}
}